runtime.mspan.sweepgen (field)

26 uses

	runtime (current package)
		mcache.go#L156: 		if s.sweepgen != mheap_.sweepgen+3 {
		mcache.go#L193: 	s.sweepgen = mheap_.sweepgen + 3
		mcache.go#L281: 			if s.sweepgen != sg+1 {
		mcentral.go#L202: 	stale := s.sweepgen == sg+1
		mcentral.go#L212: 		atomic.Store(&s.sweepgen, sg-1)
		mcentral.go#L215: 		atomic.Store(&s.sweepgen, sg)
		mgcmark.go#L368: 			if !useCheckmark && !(s.sweepgen == sg || s.sweepgen == sg+3) {
		mgcmark.go#L370: 				print("sweep ", s.sweepgen, " ", sg, "\n")
		mgcsweep.go#L344: 	if atomic.Load(&s.sweepgen) != l.sweepGen-2 {
		mgcsweep.go#L348: 	if !atomic.Cas(&s.sweepgen, l.sweepGen-2, l.sweepGen-1) {
		mgcsweep.go#L384: 			if !(s.sweepgen == sl.sweepGen || s.sweepgen == sl.sweepGen+3) {
		mgcsweep.go#L385: 				print("runtime: bad span s.state=", state, " s.sweepgen=", s.sweepgen, " sweepgen=", sl.sweepGen, "\n")
		mgcsweep.go#L489: 		spangen := atomic.Load(&s.sweepgen)
		mgcsweep.go#L518: 	if state := s.state.get(); state != mSpanInUse || s.sweepgen != sweepgen-1 {
		mgcsweep.go#L519: 		print("mspan.sweep: state=", state, " sweepgen=", s.sweepgen, " mheap.sweepgen=", sweepgen, "\n")
		mgcsweep.go#L681: 	if state := s.state.get(); state != mSpanInUse || s.sweepgen != sweepgen-1 {
		mgcsweep.go#L682: 		print("mspan.sweep: state=", state, " sweepgen=", s.sweepgen, " mheap.sweepgen=", sweepgen, "\n")
		mgcsweep.go#L685: 	if s.sweepgen == sweepgen+1 || s.sweepgen == sweepgen+3 {
		mgcsweep.go#L699: 	atomic.Store(&s.sweepgen, sweepgen)
		mheap.go#L483: 	sweepgen              uint32
		mheap.go#L1418: 		atomic.Store(&s.sweepgen, h.sweepgen)
		mheap.go#L1603: 		if s.allocCount != 0 || s.sweepgen != h.sweepgen {
		mheap.go#L1604: 			print("mheap.freeSpanLocked - span ", s, " ptr ", hex(s.base()), " allocCount ", s.allocCount, " sweepgen ", s.sweepgen, "/", h.sweepgen, "\n")